package stud.aistar.mybatis.vo;

import stud.aistar.mybatis.pojo.Orders;

import java.util.Date;

/**
 * @author success
 * @version 1.0
 * @description:本类用来演示:1 - 输出映射类型
 *                             2 - 输入映射类型
 * @date 2019/8/23 0023
 */
public class OrdersQueryVo extends Orders {
    //根据业务需求来添加属性

    //需求 - 根据订单的id进行查询,然后将该订单的客户信息也查询出来.
    //散列的将订单的所有信息和用户的所有信息全部散列的写在此处
    //private User user;//不允许 - resultType不支持级联属性的映射

    private Integer uid;

    private String username;

    private String sex;

    private Date birthday;

    private String address;

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("OrdersQueryVo{");
        sb.append("uid=").append(uid);
        sb.append(", username='").append(username).append('\'');
        sb.append(", sex='").append(sex).append('\'');
        sb.append(", birthday=").append(birthday);
        sb.append(", address='").append(address).append('\'');
        sb.append('}');
        return super.toString()+sb.toString();
    }
}
